#include <QApplication>
#include "mainwindow.h"
#include <QSplashScreen>

int main(int argc, char* argv[])
{
    QApplication app(argc, argv);

    QSplashScreen *splash = new QSplashScreen;
    splash->setPixmap(QPixmap(":/images/loading.jpg"));
    splash->show();

    Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
    splash->showMessage(QObject::tr("Setting up the main window ... "),
                        topRight, Qt::white);
    splash->showMessage(QObject::tr("Loading modules ... "),
                        topRight, Qt::white);
    //loadModules();
    splash->showMessage(QObject::tr("Establishing connections ... "),
                        topRight, Qt::white);
    //establishConnections();
    MainWindow *mainWindow = new MainWindow;
//    mainWindow->setWindowTitle("<<SpreadSheet>>");
//    mainWindow->resize(1000, 600);
    mainWindow->show();
    splash->finish(mainWindow);
    delete splash;


    return app.exec();
}
